Function Scoping Rules

ś scoping rules will seem somewhat peculiar if you don't remember that: ``everything is a variable''. By default, all variables used inside a function, with the exception of arguments, and local variables, are global. This allows users to have access to the other user and builtin functions without special declarations, or complicated scoping rules. Variables in a function are resolved by:
  1. Looking in the fuction arguments,
  2. Looking in the local variables,
  3. Looking in the file's static variables,
  4. Looking in the symbol-table.


Subsections